﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Liang.Device.Camera.Const
{
    /// <summary>
    /// 艾普视达摄像头常量
    /// </summary>
    public class AipStarConst
    {
        /// <summary>
        /// 色彩模式
        /// </summary>
        public enum ColorTransMode
        {
            /// <summary>
            /// 自动
            /// </summary>
            [Description("自动")]
            auto = 0,

            /// <summary>
            /// 彩色
            /// </summary>
            [Description("彩色")]
            color = 1,

            /// <summary>
            /// 黑白
            /// </summary>
            [Description("黑白")]
            blackAndwhite = 2,
        }

        /// <summary>
        /// 快门模式
        /// </summary>
        public enum ShutterSpeed
        {
            /// <summary>
            /// 1/25
            /// </summary>
            [Description("1/25")]
            TwentyFifth = 0,

            /// <summary>
            /// 1/30
            /// </summary>
            [Description("1/30")]
            Thirtieth = 1,

            /// <summary>
            /// 1/50
            /// </summary>
            [Description("1/50")]
            Fiftieth = 2,

            /// <summary>
            /// 1/60
            /// </summary>
            [Description("1/60")]
            Sixtieth = 3,

            /// <summary>
            /// 1/100
            /// </summary>
            [Description("1/100")]
            Hundredth = 4,

            /// <summary>
            /// 1/120
            /// </summary>
            [Description("1/120")]
            OnePer120 = 5,

            /// <summary>
            /// 1/240
            /// </summary>
            [Description("1/240")]
            OnePer240 = 6,

            /// <summary>
            /// 1/480
            /// </summary>
            [Description("1/480")]
            OnePer480 = 7,

            /// <summary>
            /// 1/960
            /// </summary>
            [Description("1/960")]
            OnePer960 = 8,

            /// <summary>
            /// 1/1024
            /// </summary>
            [Description("1/1024")]
            OnePer1024 = 9,

            /// <summary>
            /// 自动
            /// </summary>
            [Description("自动")]
            Auto = 10,

            /// <summary>
            /// 1/4
            /// </summary>
            [Description("1/4")]
            Quarter = 11,

            /// <summary>
            /// 1/8
            /// </summary>
            [Description("1/8")]
            Eighth = 12,

            /// <summary>
            /// 1/15
            /// </summary>
            [Description("1/15")]
            Fifteenth = 13,

            /// <summary>
            /// 1/180
            /// </summary>
            [Description("1/180")]
            OnePer180 = 14,

            /// <summary>
            /// 1/2000
            /// </summary>
            [Description("1/2000")]
            OnePerTwoThousand = 15,

            /// <summary>
            /// 1/4000
            /// </summary>
            [Description("1/4000")]
            OnePerFourThousand = 16,

            /// <summary>
            /// 1/10000
            /// </summary>
            [Description("1/10000")]
            OnePerTenThousand = 17,
        }
    }

    /// <summary>
    /// 初始化类型。不同的类型，作用不一样
    /// </summary>
    public enum AipStarInitModel
    {
        /// <summary>
        /// 设备控制SDK
        /// </summary>
        [Description("设备控制SDK")]
        TMCC_INITTYPE_CONTROL = 0x00,

        /// <summary>
        /// 枚举SDK
        /// </summary>
        [Description("枚举SDK")]
        TMCC_INITTYPE_ENUM = 0x01,

        /// <summary>
        /// 升级SDK
        /// </summary>
        [Description("升级SDK")]
        TMCC_INITTYPE_UPGRADE = 0x02,

        /// <summary>
        /// 语音对讲SDK
        /// </summary>
        [Description("语音对讲SDK")]
        TMCC_INITTYPE_TALK = 0x03,

        /// <summary>
        /// 播放数据流SDK
        /// </summary>
        [Description("播放数据流SDK")]
        TMCC_INITTYPE_STREAM = 0x04,

        /// <summary>
        /// 播放实时数据流SDK
        /// </summary>
        [Description("播放实时数据流SDK")]
        TMCC_INITTYPE_REALSTREAM = 0x05,

        /// <summary>
        /// 状态接收和报警接收SDK
        /// </summary>
        [Description("状态接收和报警接收SDK")]
        TMCC_INITTYPE_LISTEN = 0x06,

        /// <summary>
        /// 视频显示SDK
        /// </summary>
        [Description("视频显示SDK")]
        TMCC_INITTYPE_VIDEORENDER = 0x07,

        /// <summary>
        /// 语音对讲数据解码SDK
        /// </summary>
        [Description("语音对讲数据解码SDK")]
        TMCC_INITTYPE_VOICERENDER = 0x08,
    }
}
